export default class ParseRequest{
  constructor (url) {
    let param = url.split('?')[0]
    let params = url.split('&')
    this.params = {}
    params.forEach((value, index) => {
      let pName = value.split('=')[0]
      let pValue = value.split('=')[1]
      this.params[pName] = pValue
    })
    this.getParam = function (pName) {
      return this.params[pName]
    }
  }
}
